package com.lhy.example.user.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户模型
 * </p>
 * @author 86159
 * @date 2022-05-24 19:01:15
 * Copyright (c) 2022 
 */
@Data
@TableName("t_user")
@Schema(name = "User",title = "User",description = "用户")
public class User implements Serializable {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户名
     */
    @Schema(name = "name",title = "name",description = "用户名")
    @TableField("name")
    private String name;

    /**
     * 手机号
     */
    @Schema(name = "phone",title = "phone",description = "手机号")
    @TableField("phone")
    private String phone;

    /**
     * 用户状态
     */
    @Schema(name = "status",title = "status",description = "用户状态")
    @TableField("status")
    private Integer status;

    /**
     * 密码
     */
    @Schema(name = "pass",title = "pass",description = "密码")
    @TableField("pass")
    private String pass;

    /**
     * 创建时间
     */
    @Schema(name = "created",title = "created",description = "创建时间")
    @TableField("created")
    private LocalDateTime created;

    /**
     * 更新时间
     */
    @Schema(name = "updated",title = "updated",description = "更新时间")
    @TableField("updated")
    private LocalDateTime updated;


    public static final String ID = "id";
    public static final String NAME = "name";
    public static final String PASS = "pass";
    public static final String PHONE = "phone";
    public static final String STATUS = "status";
    public static final String CREATED = "created";
    public static final String UPDATED = "updated";

}
